package com.report.reportserver.mapper;

import com.report.reportserver.model.Legend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LegendMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Legend record);

    int insertSelective(Legend record);

    Legend selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Legend record);

    int updateByPrimaryKey(Legend record);

    @Select("select * from r_legend")
    List<Object> selectAllLegends();
}